# bgi_colors.py
#
# Matthew Weathers, 26-Dec-2009
# Using the same 64 colors as the ancient BGI package (Borland Graphics, from
# some old C compiler), see list of colors on http://csci.biola.edu/csci105/all_64_colors.htm

BGIcolors = [(0, 0, 0),
             (0, 0, 255),
             (0, 255, 0),
             (0, 255, 255),
             (255, 0, 0),
             (255, 0, 255),
             (165, 42, 42),
             (211, 211, 211),
             (47, 79, 79),
             (173, 216, 230),
             (32, 178, 170),
             (224, 255, 255),
             (240, 128, 128),
             (219, 112, 147),
             (255, 255, 0),
             (255, 255, 255),
             (0xF0, 0xF8, 0xFF),
             (0xFA, 0xEB, 0xD7),
             (0x22, 0x85, 0xFF),
             (0x7F, 0xFF, 0xD4),
             (0xF0, 0xFF, 0xFF),
             (0xF5, 0xF5, 0xDC),
             (0xFF, 0xE4, 0xC4),
             (0xFF, 0x7B, 0xCD),
             (0x00, 0x00, 0xFF),
             (0x8A, 0x2B, 0xE2),
             (0xA5, 0x2A, 0x2A),
             (0xDE, 0xB8, 0x87),
             (0x5F, 0x9E, 0xA0),
             (0x7F, 0xFF, 0x00),
             (0xD2, 0x50, 0x1E),
             (0xFF, 0x7F, 0x50),
             (0x64, 0x95, 0xED),
             (0xFF, 0xF8, 0xDC),
             (0xDC, 0x14, 0x3C),
             (0x68, 0xCF, 0xDF),
             (0x00, 0x00, 0x8B),
             (0x00, 0x8B, 0x8B),
             (0xB8, 0x86, 0x0B),
             (0xA9, 0xA9, 0xA9),
             (0x00, 0x64, 0x00),
             (0xBD, 0xB7, 0x6B),
             (0x8B, 0x00, 0x8B),
             (0x55, 0x6B, 0x2F),
             (0xFF, 0x8C, 0x00),
             (0xB9, 0x82, 0xFC),
             (0x8B, 0x00, 0x00),
             (0xE9, 0x96, 0x7A),
             (0x8F, 0xBC, 0x8F),
             (0x48, 0x3D, 0x8B),
             (0x2F, 0x4F, 0x4F),
             (0x00, 0xCE, 0xD1),
             (0x94, 0x00, 0xD3),
             (0xFF, 0x14, 0x93),
             (0x00, 0xBF, 0xFF),
             (0x69, 0x69, 0x69),
             (0x1E, 0x90, 0xFF),
             (0xB2, 0x22, 0x22),
             (0xFF, 0xFA, 0xF0),
             (0x22, 0x8B, 0x22),
             (0xFF, 0x00, 0xFF),
             (0xDC, 0xDC, 0xDC),
             (0xF8, 0xF8, 0xBF),
             (0xFF, 0xD7, 0x00) ]

# The standard names for the first 16 colors

BLACK = BGIcolors[0]
BLUE = BGIcolors[1]
GREEN = BGIcolors[2]
CYAN = BGIcolors[3]
RED = BGIcolors[4]
MAGENTA = BGIcolors[5]
BROWN = BGIcolors[6]
LIGHTGRAY = BGIcolors[7]
DARKGRAY = BGIcolors[8]
LIGHTBLUE = BGIcolors[9]
LIGHTGREEN = BGIcolors[10]
LIGHTCYAN = BGIcolors[11]
LIGHTRED = BGIcolors[12]
LIGHTMAGENTA = BGIcolors[13]
YELLOW = BGIcolors[14]
WHITE = BGIcolors[15]
